package multiplayer.lan;

import java.io.IOException;
import java.net.UnknownHostException;
import java.util.Observer;

import gui.gui2d.Promotion;
import utility.Point;


public interface TcpObject extends Runnable{
	void connect() throws IOException;
	void sendMovement(Point from , Point to) throws IOException;
	Object receiveObject();
	void sendPromotion(Promotion p);
	void sendMessage(String nome , String message) throws IOException;
	void loadIp(String ip);
	void closeConnection();
	void disable();
	boolean isClosed();
}
